<template>
	<view>
		{{name}}
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex' //引入mapState
	export default {
		data() {
			return {
			}
		},
		computed: mapState([
			'name', //映射 this.username 为 store.state.username
		]),
	}
</script>

<style>
</style>
